﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="tvStationPeopleList.aspx.cs" Inherits="Com.CMS263.Web.manage.TvStation.tvStationPeopleList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
         <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <link href="../common/validator.css" rel="stylesheet" type="text/css" />

    <script language="javascript" src="/js/jquery-1.4.2.min.js"></script>
      <script language="javascript" type="text/javascript">
        function del(id, obj) {
            if (confirm('这是一个不可逆的操作，真的要删除此条记录')) {
                $.post("Station_action.aspx?op=deleteTvPeople&&id="+id, {}, function(data) {
                    if (data == "ok") {
                        alert('删除成功');
                        $(obj.parentNode.parentNode).remove();
                    }
                })
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_1">
            <tr>
                <td height="23" class="table_2">
                    <asp:Label ID="lbTypeName" runat="server"></asp:Label>
                    管理
                </td>
            </tr>
            <tr>
                <td class="tdside" align="left">
                    <a href="addTvStationPeople.aspx">添加新内容</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    搜索:<asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
                    <asp:Button ID="Button1" runat="server" Text="搜索"  />
                    <br />
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%">
                        <tr style="text-align: center">
                            <td>
                                排序编号
                            </td>
                            <td>
                                名称
                            </td> 
                             <td>
                               电视台
                            </td>
                            <td>
                                头像(152*164)
                            </td>                             
                              <td>
                                描述
                            </td>
                            <td>
                                操作
                            </td>
                        </tr>
                        <% foreach(Com.CMS263.PO.TvStationPeople tvp in tvPList)
                           { %>
                        <tr style="background-color: #d7f2fd; text-align: center">
                            <td>
                                <%=tvp.Id %>
                            </td>
                            <td>
                                <a title="<%=tvp.Name%>">
                                    <%=Com.CMS263.Util.StringUtil.GetText(tvp.Name,15) %></a>
                            </td>              
                               <td>
                                <%=tvp.TvStationName%>
                            </td>            
                             <td>
                                <img src="/ArtUpFile/<%=tvp.HeadPic %>" width="100px;" height="100px;"/>
                            </td>
                           
                              <td>
                               <span title="<%=tvp.Description %>"><%=Com.CMS263.Util.StringUtil.GetText(tvp.Description,50) %></span> 
                            </td>
                            <td>
                                <a href="editTvStationPeople.aspx?page=<%=page %>&&id=<%=tvp.Id%>">
                                    修改</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a style="cursor: pointer" onclick="del(<%=tvp.Id%>,this)">
                                        删除</a>
                            </td>
                        </tr>
                        <%} %>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="tdside" align="right">
                    <%=GetPagerTv()%>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
